import request from '@/utils/request'

// 注册
export function Register(data) {
  return request({
    url: '/api/user/register',
    method: 'post',
    data
  })
}

// 登录
export function Login(data) {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}

// 查询婚姻登记结果
export function QueryMarriageResult(token) {
  return request({
    url: '/api/user/form?token=' + token,
    method: 'get'
  })
}

// 用户服务协议
export function GetAgreement() {
  return request({
    url: '/api/user/registertext',
    method: 'get'
  })
}

